﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminCP/Views/Shared/ViewMasterPage1.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="InfoTech.LanTranh.MucVu.Service" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Báo Cáo</h3>
        </div>
        <div class="content-box-content">
            <table>
                <tr>
                    <td align="right" class="cellTitle" valign="middle" rowspan="2">
                        Giáo Họ : &nbsp;&nbsp;
                    </td>
                    <td rowspan="2" valign="middle">
                        <%=Html.DropDownList("GIAOHO",GIAOHOService.Get_List_Join_GiaoPhan_GiaoHat_GiaoXu()) %>
                    </td>
                    <td>
                        <input type="button" onclick="Report_GiaoHo2();" value="Xuất Báo Cáo" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                    <td>
                        <input type="button" onclick="Report_GiaoHo();" value="In Thông Tin Đầy Đủ"
                            
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="button" onclick="Report_GiaoHo1();" value="In Thông Tin" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                    <td>
                        <input type="button" onclick="Report_GiaoHo3();" value="Danh Sách Chủ Hộ" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                </tr>
                <tr>
                    <td class="lineRow" colspan="4">
                    </td>
                </tr>
                <tr>
                    <td align="right" class="cellTitle" valign="middle" rowspan="2">
                        Hộ Gia Đình : &nbsp;&nbsp;
                    </td>
                    <td rowspan="2" valign="middle">
                        <select id="HOGIADINH" class="text-input" />
                    </td>
                    <td>
                        <input type="button" onclick="Report_HoGiaDinh2();" value="Xuất Báo Cáo" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                    <td>
                        <input type="button" onclick="Report_HoGiaDinh();" value="In Thông Tin Đầy Đủ" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="button" onclick="Report_HoGiaDinh1();" value="In Thông Tin" 
                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            style="width: 175px;" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="clear">
    </div>
    <ul class="shortcut-buttons-set">
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("ChuaRuaToi","Reports") %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuaToi.png" alt="icon" /><br />
                Chưa Rửa Tội </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("ChuaRuocLe","Reports") %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuocLe.png" alt="icon" /><br />
                Chưa Rước Lễ </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("ChuaThemSuc","Reports") %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuocLe.png" alt="icon" /><br />
                Chưa Thêm Sức </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("GiaoDan","Reports") %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>GiaoDan.png" alt="icon" /><br />
                Giáo Dân </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("HoGiaDinh","Reports") %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>HoGiaDinh.png" alt="icon" /><br />
                Hộ Gia Đình </span></a></li>
    </ul>
    <div class="clear">
    </div>
    <div class="content-box">
        <div class="content-box-header">
            <table>
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                        <h3>
                            Năm</h3>
                    </td>
                    <td>
                        <div class="editor-field">
                            <%: Html.DropDownList("NAM",GIAODANService.Get_List_Years(), new { style = "width: 150px", @class="text-input" })%>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <ul class="shortcut-buttons-set">
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("RuaToi","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuaToi.png" alt="icon" /><br />
                Rửa Tội </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("RuocLe","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuocLe.png" alt="icon" /><br />
                Rước Lễ </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("ThemSuc","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>ThemSuc.png" alt="icon" /><br />
                Thêm Sức </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("XucDau","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>ThemSuc.png" alt="icon" /><br />
                Xức Dầu </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("TaThe","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>ThemSuc.png" alt="icon" /><br />
                Tạ Thế </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("TanHien","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","MucVu") %>LinhMuc.png" alt="icon" /><br />
                Tận Hiến </span></a></li>
        <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("HonPhoi","Reports",new {id="ID",area="AdminCP"}) %>');">
            <span>
                <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>ThemSuc.png" alt="icon" /><br />
                Hôn Phối </span></a></li>
    </ul>
    <div class="clear">
    </div>
    <%--    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Khoảng Thời Gian</h3>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <table>
                <td align="right" class="cellTitle" valign="middle">
                    Từ Tháng &nbsp;&nbsp;
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.DropDownList("TUTHANG",GIAODANService.Get_List_Months(), new { style = "width: 150px", @class="text-input" })%>
                    </div>
                </td>
                <td width="10">
                    &nbsp;
                </td>
                <td align="right" class="cellTitle" valign="middle">
                    Đến Tháng &nbsp;&nbsp;
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.DropDownList("DENTHANG",GIAODANService.Get_List_Months(), new { style = "width: 150px", @class="text-input" })%>
                    </div>
                </td>
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                        Từ Năm
                    </td>
                    <td>
                        <div class="editor-field">
                            <%: Html.DropDownList("TUNAM",GIAODANService.Get_List_Years(), new { style = "width: 150px", @class="text-input" })%>
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td align="right" class="cellTitle" valign="middle">
                        Đến Năm
                    </td>
                    <td>
                        <div class="editor-field">
                            <%: Html.DropDownList("DENNAM",GIAODANService.Get_List_Years(), new { style = "width: 150px", @class="text-input" })%>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <!-- End .content-box-content -->
    </div>
    <div class="clear">
    </div>--%>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderCss" runat="server">
    <%--<link href="<%=Html.AreaCssPath("AdminCP") %>base-reset.css" rel="stylesheet" type="text/css" />--%>
    <link href="<%=Html.AreaCssPath("AdminCP") %>themes/wijmo/jquery.wijmo-open.0.8.2.css"
        rel="stylesheet" type="text/css" />
    <link href="<%=Html.AreaCssPath("AdminCP") %>themes/wijmo/jquery.ui.wijcombobox.css"
        rel="stylesheet" type="text/css" />
    <style type="text/css">
        select
        {
            padding: 4px;
            -moz-border-radius: 4px;
            -webkit-border-radius: 4px;
            border-radius: 4px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">
    <script src="<%=Html.AreaScriptPath("AdminCP") %>jquery.wijmo-open.0.8.2.min.js"
        type="text/javascript"></script>
    <script src="<%=Html.AreaScriptPath("AdminCP") %>jquery.mousewheel.min.js" type="text/javascript"></script>
    <script src="<%=Html.AreaScriptPath("AdminCP") %>wijmo/jquery.ui.wijdatasource.js"
        type="text/javascript"></script>
    <script src="<%=Html.AreaScriptPath("AdminCP") %>wijmo/jquery.ui.wijcombobox.js"
        type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#NAM").wijcombobox(
                {
                    showingAnimation: { effect: "blind" },
                    hidingAnimation: { effect: "blind" }
                }
            );
            $("#GIAOHO").wijcombobox(
                {
                    showingAnimation: { effect: "blind" },
                    hidingAnimation: { effect: "blind" }
                }
            );
            //            $("#HOGIADINH").wijcombobox(
            //                            {
            //                                showingAnimation: { effect: "blind" },
            //                                hidingAnimation: { effect: "blind" }
            //                            }
            //                        );
            $("#GIAOHO").change(function () {
                Change_GiaoHo('<%=Url.Action("GetHoGiaDinh","AdminCP",new {area="AdminCP"}) %>', this.value);
            });
        });
        function Change_GiaoHo(url, value) {
            $('#HOGIADINH').html('');
            $.post(url, { id: value },
            function (data) {
                AppendData('#HOGIADINH', data);
            });
        }
        function AppendData(source, data) {
            for (var i = 0; i < data.length; i++) {
                if (data[i].Text != "" && data[i].Text.length > 0) {
                    $(source).append('<option value="' + data[i].Value + '">' + data[i].Text + '</option>').find('option:first').attr('selected', 'selected');
                }
            }
        }
        function Report(url) {
            window.location.href = url.replace("ID", $('#NAM').val());
        }
        function Report_GiaoHo() {
            var url = '<%=Url.Action("Reports_GiaoHo","Reports",new {id="ID",area="AdminCP"}) %>';
            myPopup(url.replace("ID", $('#GIAOHO').val()), '', 1000, 600, 20, 20);
        }
        function Report_GiaoHo1() {
            var url = '<%=Url.Action("Reports_GiaoHo1","Reports",new {id="ID",area="AdminCP"}) %>';
            myPopup(url.replace("ID", $('#GIAOHO').val()), '', 1000, 600, 20, 20);
        }
        function Report_GiaoHo2() {
            var url = '<%=Url.Action("Reports_GiaoHo2","Reports",new {id="ID",area="AdminCP"}) %>';
            window.location.href = url.replace("ID", $('#GIAOHO').val());
        }
        function Report_GiaoHo3() {
            var url = '<%=Url.Action("Reports_GiaoHo3","Reports",new {id="ID",area="AdminCP"}) %>';
            window.location.href = url.replace("ID", $('#GIAOHO').val());
        }
        function Report_HoGiaDinh() {
            var url = '<%=Url.Action("Reports_HoGiaDinh","Reports",new {id="ID",area="AdminCP"}) %>';
            myPopup(url.replace("ID", $('#HOGIADINH').val()), '', 1000, 600, 20, 20);
        }
        function Report_HoGiaDinh1() {
            var url = '<%=Url.Action("Reports_HoGiaDinh1","Reports",new {id="ID",area="AdminCP"}) %>';
            myPopup(url.replace("ID", $('#HOGIADINH').val()), '', 1000, 600, 20, 20);
        }
        function Report_HoGiaDinh2() {
            var url = '<%=Url.Action("Reports_HoGiaDinh2","Reports",new {id="ID",area="AdminCP"}) %>';
            window.location.href = url.replace("ID", $('#HOGIADINH').val());
        }
        function myPopup(url, windowname, w, h, x, y) {
            window.open(url, windowname, "resizable=yes,toolbar=no,scrollbars=yes,menubar=no,status=yes,directories=no,width=" + w + ",height=" + h + ",left=" + x + ",top=" + y + "");
        }
    </script>
</asp:Content>
